/**
   Copyright 2008 Kirill Ignatiev

    This file is part of kerr-wavefronts.

    kerr-wavefronts is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    kerr-wavefronts is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with kerr-wavefronts.  If not, see <http://www.gnu.org/licenses/>.
 */
#include "settings.h"
map<string, int> settings_rep;
double Wavefront_precision = 4.0;
double Wavefront_intensity = 20000.0;
bool Show_axes = false;

int Gets(string name) {
  return settings_rep[name];
}
int Gets(string name, int default_value) {
  map<string,int>::const_iterator i = settings_rep.find(name);
  return (i == settings_rep.end()) ? default_value : i->second;
}
void Sets(string name, int value) {
  settings_rep[name] = value;
}
